<%@ page language="java" import="com.demo.util.Conn,java.sql.ResultSet" pageEncoding="UTF-8"%>
<%
String company_id = request.getParameter("company_id");
String corp_name_chs = request.getParameter("corp_name_chs");
String registered_capital = request.getParameter("registered_capital");
String legal = request.getParameter("legal");
String create_time = request.getParameter("create_time");
String company_scale = request.getParameter("company_scale");
String industry = request.getParameter("industry");
String introduction = request.getParameter("introduction");
String email = request.getParameter("email");
String contact_person = request.getParameter("contact_person");
String company_address = request.getParameter("company_address");
String postcode = request.getParameter("postcode");
String facsimile = request.getParameter("facsimile");
String telephone = request.getParameter("telephone");
String company_url = request.getParameter("company_url");

String sql = "update DBF_USER_COMPANY SET corp_name_chs = " + "'" + corp_name_chs + "'"
			 + " , registered_capital = " + "'" + registered_capital + "'"
			 + " , legal = " + "'" + legal + "'"
			 + " , create_time = " + "'" + create_time + "'"
			 + " , company_scale = " +"'" +  company_scale + "'"
			 + " , industry = " + "'" + industry + "'"
			 + " , introduction = " + "'" + introduction + "'"
			 + " , email = " + "'" + email + "'"
			 + " , contact_person = " + "'" + contact_person + "'"
			 + " , company_address = " + "'" + company_address + "'"
			 + " , postcode = " + "'" + postcode + "'"
			 + " , facsimile = " + "'" + facsimile + "'"
			 + " , telephone = " + "'" + telephone + "'"
			 + " , company_url = " + "'" + company_url + "'"
			 + " where company_id = " + company_id 
			 ;

Conn conn = new Conn();
boolean result = conn.execute(sql);
String redirect_address = "comInfo.jsp";
response.sendRedirect(redirect_address);
%>